package com.bzr.emos.wx.admin;


import com.bzr.emos.wx.db.dao.TbCityDao;
import io.swagger.v3.oas.annotations.Operation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collection;

@Slf4j
@RequestMapping("/admin")
@RestController
public class adminController {

    @Autowired
    private TbCityDao tbCityDao;

    @Operation(summary = "测试Get请求")
    @GetMapping("test")
    public String TEST() {


        return tbCityDao.selectList(null).toString();


    }




}
